<template>
    <div class="head">
        <van-nav-bar class="nav_bar" :title="name" :left-arrow="name!='首页'" @click-left="onClickLeft" />
    </div>
</template>

<script setup>
let props = defineProps(['name'])
const onClickLeft = () => history.back();

</script>

<style lang="scss" scoped>
@import '@/assets/style/variable.scss';

.head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 46px;

    
}
</style>